package com.zfy.cmsservice.mapper;

import com.zfy.cmsservice.entity.Courses;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfy.cmsservice.entity.vo.CoursesVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 课程表 Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2023-12-03
 */
public interface CoursesMapper extends BaseMapper<Courses> {

    List<CoursesVo> pageCourses(@Param("page") long page, @Param("size") long size, @Param("name") String name);

    int pageCoursesTotal(@Param("page") long page, @Param("size") long size, @Param("name") String name);

    List<Courses> findAllTeacher();

    List<Courses> getElective();
}
